package no.uib.hplims.models.peptideinformation;

import javax.persistence.Entity;

import org.vaadin.appfoundation.persistence.data.AbstractPojo;

@Entity
public class Storage extends AbstractPojo {

	private static final long serialVersionUID = -3323248466411659860L;
	
	private Freezer freezer;
	private String concentration;
	private int numberOfAliquots;

	public Storage() {
		
	}

	public Freezer getFreezer() {
		return freezer;
	}

	public void setFreezer(Freezer freezer) {
		this.freezer = freezer;
	}

	public String getConcentration() {
		return concentration;
	}

	public void setConcentration(String concentration) {
		this.concentration = concentration;
	}

	public int getNumberOfAliquots() {
		return numberOfAliquots;
	}

	public void setNumberOfAliquots(int numberOfAliquots) {
		this.numberOfAliquots = numberOfAliquots;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Storage that = (Storage) obj;
		
		if (!this.id.equals(that.id))
			return false;
		return true;
	}
}
